package com.xunk.equipment.websocket;

import javax.websocket.EncodeException;
import javax.websocket.Encoder;
import javax.websocket.EndpointConfig;

/**
 * @ProjectName: HIM
 * @Package: com.xunk.equipment.websocket
 * @ClassName: TextEncoder
 * @Author: luanzhiwei
 * @Description: websocketclient 解码器
 * @Date: 2021/4/26 11:25
 * @Version: 1.0
 */
public class TextEncoder implements Encoder.Text<String> {

    @Override
    public String encode(String s) throws EncodeException {
        return s;
    }

    @Override
    public void init(EndpointConfig endpointConfig) {

    }

    @Override
    public void destroy() {

    }
}
